<?php
/**
 * Created by PhpStorm.
 * User: gabriel
 * Date: 2018/11/26
 * Time: 4:47 PM
 */
 namespace CLI;

 abstract class CLI{
   public function process(){
     if ($this->before()){
       $this->run();
       $this->after();
     }
   }

   protected function before():bool {
     return true;
   }
   protected function after(){

   }
   abstract protected function run();
 }

